package com.rich.area;

import com.rich.common.util.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

/**
 * 你好
 * @Package: com.rich.area
 * @Author: 张dy
 * @Date: Created in 2021/8/13 下午 7:31
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.rich.area.mapper")
public class AreaApplication {
    public static void main(String[] args) {
        SpringApplication.run(AreaApplication.class);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
